﻿<!doctype>
<html>
<head>
    <title>微街秀 > 我的设置</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" type="text/css" href="css/css.css" />
    <link href="css/MakeSeting.css" rel="stylesheet" type="text/css" />
    <link href="css/MakeAdvertMain.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function tomakeUrl(obj) {
            if (!islogin()) { window.location.href = 'login.html'; return; }
            window.location.href = 'Makesetdetail.html?name=' + $(obj).children('.righttxt').html() + '&nick=' + $(obj).children().html() + "&rand=" + (Math.random().toString().substring(2, 8));
        }
    </script>
</head>
<body>
    <div>
        <div class="wamtop">
            <div class="topcententxt">
                分享</div>
            <div class="topright" style="color: white;" onClick="window.location.href='Makead_1.html'">
                推广</div>
        </div>
        <div style="width: 100%; margin: 0; padding: 0; background-color: White;">
            <div class="selectTags">
                <table class="tab">
                    <tbody>
                        <tr>
                            <td>
                                <div class="model" id="Share" style="background-color: rgb(244, 244, 244);" onClick="window.location.href='makesh_1.html'">
                                    <img src="img/Makeimg/newicon/1.png">
                                    <div>
                                        分享广告
                                    </div>
                                    <div class="border">
                                    </div>
                                </div>
                            </td>
                            <td>
                                <div class="model" id="effect" style="background-color: rgb(244, 244, 244);" onClick="window.location.href='makesh_2.html'">
                                    <img src="img/Makeimg/newicon/3.png">
                                    <div>
                                        红包记录
                                    </div>
                                    <div class="border">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <div class="model" id="pubsilh" style="background-color: rgb(244, 244, 244);" onClick="window.location.href='makesh_3.html'">
                                    <img src="img/Makeimg/newicon/5.png">
                                    <div>
                                        我的财富
                                    </div>
                                    <div class="border">
                                    </div>
                                </div>
                            </td>
                            <td>
                                <div class="model" id="cost" style="color: rgb(243, 123, 11); background-color: rgb(231, 231, 231);">
                                    <img src="img/Makeimg/newicon/8.png">
                                    <div>
                                        我的设置
                                    </div>
                                    <div class="border" style="border-bottom-width: 2px; border-bottom-color: rgb(243, 123, 11);
                                        border-bottom-style: solid;">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="Tags">
                <div class="Tagtxt">
                    我的设置</div>
                <div class="with state">
                    提现</div>
            </div>
        </div>
        <div class="title" onClick="window.location.href='Makeaddwx.html?rand=5219'">
            <img src="img/logo.png" style="width: 50px; float: left; margin: 10px 0 0 20px;">
            <div style="float: left; margin: 20px 0 0 10px; line-height: 17px;">
                <span style="color: #414141;">请加此微信为好友</span><br>
                <span style="font-size: 12px; color: #8F8F8F;">微街秀</span>
            </div>
            <img src="img/45.png" class="rgihtico" style="margin-top: 25px;">
            <img src="img/Makeimg/21.png" style="width: 20px; float: right; margin: 25px 10px 0 0;">
        </div>
        <div style="display:none;height: 50px; margin-top: 5px; background: white; border-bottom: 1px #D6D5D3 solid;"
            onclick="tomakeUrl(this); return false()">
            <span class="lefttxt">姓名</span>
            <img src="img/45.png" class="rgihtico">
            <span class="righttxt truename"></span>
        </div>
        <div style="height: 50px; background: white;margin-top: 5px; border-bottom: 1px #D6D5D3 solid;" onClick="tomakeUrl(this); return false()">
            <span class="lefttxt">分享微信号</span>
            <img src="img/45.png" class="rgihtico">
            <span class="righttxt wx_name"></span>
        </div>
        <div style="display:none;height: 50px; width: 100%; background: white; border-bottom: 1px #D6D5D3 solid;"
            onclick="tomakeUrl(this); return false()">
            <span class="lefttxt">手机号码</span>
            <img src="img/45.png" class="rgihtico">
            <span class="righttxt mobile">手机号码</span>
        </div>
        <div style="height: 50px; width: 100%; background: white; border-bottom: 1px #D6D5D3 solid;"
            onclick="tomakeUrl(this); return false()">
            <span class="lefttxt">微信好友数量</span>
            <img src="img/45.png" class="rgihtico">
            <span class="righttxt wx_number"></span>
        </div>
        <div style="height: 50px; width: 100%; background: white; border-bottom: 1px #D6D5D3 solid;"
            onclick="window.location.href='MakeUplodimg.html'">
            <span class="lefttxt">好友数量截图</span>
            <img src="img/45.png" class="rgihtico">
            <span class="righttxt wx_picurl"></span>
        </div>
        <div style="height: 50px; width: 100%; background: white; margin-bottom: 60px; margin-top: 5px;"
            onclick="window.location.href='MakeSelectare.html'">
            <span class="lefttxt">区域</span>
            <img src="img/45.png" class="rgihtico">
            <span class="righttxt area"></span>
        </div>
        <div class="bottom">
            <ul>
                <li>
                    <div onClick="window.location.href='index.html'">
                        <img src="img/tab1_g.png" /><br />
                        发现
                    </div>
                </li>
                <li>
                    <div onClick="window.location.href='publish.html'">
                        <img src="img/tab2_g.png" /><br />
                        发布
                    </div>
                </li>
                <li>
                    <div class="Defutalcolor" style="position: relative;">
                        <img src="img/tab3_y.png" />
                        <br />
                        推广                       
                    </div>
                </li>
                <li>
                    <div onClick="if(login())window.location.href = 'Personal.html'">
                        <img src="img/tab4_g.png" /><br />
                        我的
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <script src="js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="js/ajax-data.js" type="text/javascript"></script>
    <script src="js/base.js" type="text/javascript"></script>
    <script src="js/dialog.js" type="text/javascript"></script>
    <script>
        var page = 1;
        $(function () {
            load(page);
        });
        function load(page) {
            if (!islogin()) { window.location.href = 'login.html'; return; }
            AjaxStart("ajax/fc_setting.ashx?get", "", function (data) {
                if (data.code == 4) {
                    $(".wx_picurl").html("未上传");
                    return;
                }
                loadhtml(data.item);
            });
        }
        function loadhtml(item) {
            $(".truename").html(item["truename"]);
            $(".mobile").html(item["mobile"]);
            $(".wx_name").html(item["wx_name"]);
            $(".wx_number").html(item["wx_number"]);
            if (item["state"] == 1)
                $(".state").html("已审核");
            else
                $(".state").html("未审核");
            if (item.wx_picurl != null && item.wx_picurl != "")
                $(".wx_picurl").html("已上传");
            else
                $(".wx_picurl").html("未上传");

            SetArea(item.area1, item.area2, item.area3);
        }

        function SetArea(area1, area2, area3) {
            var area = "";
            if (area1 != null)
                area += area1;
            if (area2 != null)
                area += "-" + area2;
            if (area3 != null)
                area += "-" + area3;
            $(".area").html(area);
        }
    </script>
</body>
</html>
